//
//  snapshot_demoUITests.swift
//  snapshot_demoUITests
//
//  Created by zhaoguoteng on 2018/4/1.
//  Copyright © 2018年 zhaoguoteng. All rights reserved.
//

import XCTest

class snapshot_demoUITests: XCTestCase {
    
    let app = XCUIApplication()
    
    override func setUp() {
        super.setUp()
        setupSnapshot(app)
        app.launch()
    }
    
    override func tearDown() {
        super.tearDown()
    }

//    func testExample() {
//        snapshot("home")
//    }
//
//    func testJump() {
//
//        let ele = app.buttons["jumpId"]
//        ele.tap()
//        snapshot("detail")
//    }
    
    func testListCellTap() {
        
        snapshot("home")
        let ele1 = app.buttons["jumpId"]
        ele1.tap()
        
        snapshot("detail")
        let ele2 = app.buttons["list"]
        ele2.tap()
        
        snapshot("table_cell")
        let ele = app.tables.element(boundBy: 0).cells.element(boundBy: 25)
        ele.tap()
    }
}
